package org.example.annation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
//把校验的操作绑定到该注解上
@Constraint(validatedBy = IdValidateConstraintValidator.class)
public @interface UIdValidation {
    String message() default "身份证信息不符合中华人民共和国的身份证标准";
    //group和playload必须实现
    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
